﻿/******************************************************/
// Post Entity class             
/******************************************************/

using System;

namespace MAA.Entity
{
    /// <summary>
    /// Hold information of a selling post
    /// </summary>
    public class Post
    {
        public long ID { get; set; }
        public long UserID { get; set; }
        public int RiceID { get; set; }
        public long Amount { get; set; }
        public long TradedAmount { get; set; }
        public int MinOrderAmount { get; set; }
        public int Price { get; set; }
        public short PercentPrice { get; set; }
        public string Address { get; set; }
        public short ProvinceID { get; set; }
        public DateTime Date { get; set; }
        public short Status { get; set; }

        /// <summary>
        /// Constructor of Post
        /// </summary>
        public Post()
        {
            ID = 0;
            UserID = 0;
            RiceID = 0;
            Amount = 0;
            TradedAmount = 0;
            MinOrderAmount = 0;
            Price = 0;
            PercentPrice = 0;
            Address = "";
            ProvinceID = 0;
            Date = new DateTime();
            Status = 0;
        }
    }
}